import wx

from distutils.core import setup
import py2exe

class Target(object):
    """ A simple class that holds information on our executable file. """
    def __init__(self, **kw):
        """ Default class constructor. Update as you need. """
        self.__dict__.update(kw)


data_files = []

includes = ['moduloventaimpresion', 'serial', 'win32com', 'webproxy',
            'wx', 'wx.lib']

target = Target(
    # what to build
    script = "run.py",
    #icon_resources = icon_resources,
    #bitmap_resources = bitmap_resources,
    #other_resources = other_resources_resources,
    #dest_base = DEST_BASE,
    #version = VERSION,
    #company_name = COMPANY_NAME ,
    #copyright = COPYRIGHT,
    #name = NAME,   
)


setup(

    # No UPX or Inno Setup

    data_files = data_files,

    options = {"py2exe": {"compressed": 0, 
                          "optimize": 0,
                          "includes": includes,
                          #"excludes": excludes,
                          #"packages": packages,
                          #"dll_excludes": dll_excludes,
                          "bundle_files": 3,
                          "dist_dir": "dist",
                          "xref": False,
                          "skip_archive": False,
                          "ascii": False,
                          "custom_boot_script": '',
                         }
              },

    zipfile = None,
    console = [],
    windows = [target],
    service = [],
    com_server = [],
    ctypes_com_server = []
)